Skip to content

sync: merge SFTtech/openage master - #3

Open
OpenGamePlus wants to merge 10 commits into
masterfrom
sync/upstream
Open

OpenGamePlus wants to merge 10 commits into
masterfrom
sync/upstream

Conversation

@OpenGamePlus

Copy link
Copy Markdown
Owner

Automated sync with upstream SFTtech/openage master.

JotaJazz and others added 10 commits November 14, 2026 22:05
With a hint before the searched time, last_before walked past keyframes
at exactly that time and returned the last of them, although it returns
the last keyframe before the time. With a hint at or after the time it
was already correct, so the result depended on the hint.

Fixes SFTtech#1827

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use a match statement on the argument type, and discard while
iterating over a snapshot of the keys. Also add Rene Turcios to
the authors list in copying.md.

Signed-off-by: Rene Turcios <95189389+CloudCorpRecords@users.noreply.github.com>
…-intersection-update

util: fix OrderedSet.intersection_update for OrderedSet and dict arguments
curve: don't return keyframes at the searched time in last_before
The original data has fractional projectile arcs (e.g. -3.44 degrees)
and ranges (the Fire Galley's 2.49), which int members can't hold
without rounding and thus changing gameplay. Make arc, min_range and
max_range floats in the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Many tech and civ bonuses multiply HP, creation costs and garrison
slots by fractional factors (e.g. HP *= 1.1, costs *= 0.8), which nyan
can't apply to int members without implicit rounding. Make the
AttributeSetting values, ResourceAmount.amount and EntityContainer.slots
floats so these stay plain member patches, and round where the engine
consumes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nyan rejects float values and operands for int members, but the
converter silently truncated them, hiding lossy conversions. Convert
numbers only without loss and raise on non-integral values for int
members and on division by zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
convert: strict int/float numbers like nyan
The C++ frames of translated exceptions were added with
_PyTraceback_Add, which became private in Python 3.13, so tracebacks
lost them.

Build the traceback entries like _PyTraceback_Add did internally: for
each C++ frame, create an empty code object carrying the C++ file, line
and function name with PyCode_NewEmpty, a frame for it with
PyFrame_New, and chain the entries with types.TracebackType. The
translated exception gets this chain before it is raised. The frames
are collected in a list local to each translation, so concurrent
translations don't share state. This only runs when a C++ exception is
translated.

Fixes SFTtech#1700

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cppinterface: show C++ frames in Python tracebacks again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants